gtk: Stop using modifier intents
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Apr 2020 23:52:25 +0000 (19:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 6 Apr 2020 20:32:03 +0000 (16:32 -0400)
commitc297d45b8a19d84e0bc04ffad17df1382d7a9bf7
tree7c6059e55e44a27d9158b4395f022da1e0b3455c
parentdce8d251c618acbd38643a8ba4bd74110f178275
gtk: Stop using modifier intents

Reviewing the existing settings, the only backend with
some differences in the modifier intent settings is OS X,
and we would rather have that implemented by interpreting
the existing modifiers in the appropriate way.

                X11      Wayland  Win32    OS X

primary         ctrl     ctrl     ctrl     mod2
mnemonic        alt      alt      alt      alt
context menu    -        -        -        ctrl
extend sel      shift    shift    shift    shift
modify sel      ctrl     ctrl     ctrl     mod2
no text         alt|ctrl alt|ctrl alt|ctrl mod2|ctrl
shift group     varies   -        -        alt

GTK now uses the following modifiers:

primary         ctrl
mnemonic        alt
extend sel      shift
modify sel      ctrl
no text         alt|ctrl

The context menu and shift group intents were not used
in GTK at all.

Update tests to no longer expect <Primary> to roundtrip
through the accelerator parsing and formatting code.
14 files changed:
gtk/gtkaccelgroup.c
gtk/gtkflowbox.c
gtk/gtkiconview.c
gtk/gtkimcontextsimple.c
gtk/gtkimmulticontext.c
gtk/gtklistbox.c
gtk/gtkprivate.c
gtk/gtkprivate.h
gtk/gtktext.c
gtk/gtktextview.c
gtk/gtktreeview.c
gtk/inspector/object-tree.c
gtk/inspector/resource-list.c
testsuite/gtk/accel.c